Skip to content

fix: gitignore .kit-triage.jsonl (kit's local triage audit log) - #157

Merged
sandstream merged 1 commit into
mainfrom
fix/gitignore-kit-triage-log
Jun 27, 2026
Merged

sandstream merged 1 commit into
mainfrom
fix/gitignore-kit-triage-log

Conversation

@sandstream

Copy link
Copy Markdown
Owner

What

kit triage appends a per-run audit log to .kit-triage.jsonl in the cwd (src/commands/triage.ts:124), exactly like .kit-audit.jsonl and the other .kit-* local-state files — but it was the one such file missing from .gitignore.

RCA

While verifying the OpenCode work (#156) I ran kit triage npm opencode-ai etc. from the repo root, which wrote .kit-triage.jsonl. A git add -A then swept it into #156 and it landed on main. Root cause: the ignore list covers .kit-audit.jsonl, .kit-baseline.json, .kit-budget.json, .kit-escalation.txt, … but not .kit-triage.jsonl.

Fix

  • Untrack the stray .kit-triage.jsonl.
  • Add the pattern to .gitignore next to .kit-audit.jsonl, so neither kit's own repo nor any kit user commits this local audit state again.

Verified git check-ignore .kit-triage.jsonl now matches.

🤖 Generated with Claude Code

https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg


Generated by Claude Code

`kit triage` appends a per-run audit log to `.kit-triage.jsonl` in the cwd
(src/commands/triage.ts), exactly like `.kit-audit.jsonl` and the other
`.kit-*` local-state files — but it was the one such file missing from
.gitignore. As a result it could be (and was) accidentally committed.

Untrack the stray file and add the pattern next to `.kit-audit.jsonl` so
neither kit's own repo nor any kit user commits this local state again.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit a5c5b51 into main Jun 27, 2026
16 checks passed
@sandstream
sandstream deleted the fix/gitignore-kit-triage-log branch June 30, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants